/**
 * Created by hms on 2020-08-22.
 */
import { ROAST_CONFIG } from '../config.js';

export default{
    getHouseList:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/houselist',{ params : data});
    },
    editHouse:function(data){
        return axios.post(ROAST_CONFIG.API_URL+'/edithouse',qs.stringify(data),{
            headers: {'Content-Type': 'application/x-www-form-urlencoded'}
        });
    },
    getHouseInfo:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/houseinfo',{
            params:data
        });
    },
    delHouse:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/delhouse',{
            params:data
        });
    },
    getAllHouseList:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/allhouselist',{params:data});
    }
}
